Barcodes Msi
The Msi Barcode can display only the number 0-9 and has no fixed length.
Syntax
msiBarcode = Barcodes.Msi ( ) |
Properties
Angle | float | Angle at which the barcode is placed along the positive X-axis. This can have +/- values in current angle unit. |
Elevation | float | Gets or sets the z coordinate of the starting position. |
HatchStyle | HatchStyle | The hatch pattern used to fill the barcode. |
Height | float | The height of the Barcode. |
HumanReadableMarkingOrder | MarkingOrder | Gets or sets the order in which the hatch and the outline of the human readable text will be marked. |
HumanReadableText | HumanReadableText | Get or Set human readable text settings |
Invert | bool | If true, Inverts the barcode. |
LineSpace | float | Gets or sets the hatching line gap of the barcode. |
MarkingOrder | MarkingOrder | Gets or sets the order in which the hatch and the outline will be marked. |
PrintRatio | float | Gets or sets the print ration (width to narrow ratio) of the barcode. |
QuietZone | bool | Gets or sets whether the quite zone of the barcode is enabled or disabled. |
ShowHumanReadableText | bool | Gets or sets whether the human readable text is visible or not |
Text | string | Alphanumeric characters, which will get encoded into the Barcode. |
Width | float | Gets or sets the width of the Barcode. |
X | float | Gets or sets the X coordinate of the starting position. |
Y | float | Gets or sets the Y coordinate of the starting position. |
Return Values
Returns an instance of Msi type Barcode. |
Copy
Example
-------- This program will scan Msi barcode
--Millimeters mode selected
SetUnits(Units.Millimeters)
-- Laser Parameter settings
Laser.JumpSpeed = 2000
Laser.MarkSpeed = 1000
--Delay settings
Laser.JumpDelay = 100
Laser.MarkDelay = 100
--Assign Msi barcode to "var" variable
var = Barcodes.Msi()
--Barcode height is 10.5
var.Height = 10.5
--Barcode width is 14.4
var.Width = 14.4
--x position of the barcode
var.X = 0.5
--Y position of the barcode
var.Y = 0.5
--10 degree angle to the canvas
var.Angle = 10
--Applies Horizontal hatch pattern
var.HatchStyle = HatchStyle.Horizontal
--Barcode includes "19820928" text as the string
var.Text = "19820928"
--0.1 unit hatch line gap
var.LineSpace = 0.1
--Mark Msi barcode
Image.Barcode(var)